﻿<view:ViewPageBase xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                   xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                   xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                   xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
                   xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                   xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
                   xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
                   xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
                   xmlns:view="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Views"
                   xmlns:viewmodel="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.ViewModels"
                   x:Class="ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.MainPage"
                   xmlns:rbn="clr-namespace:Infusion.Silverlight.Controls.Ribbon;assembly=Infusion.Silverlight.Controls"
                   xmlns:ipt="clr-namespace:Infusion.Silverlight.Controls.Input;assembly=Infusion.Silverlight.Controls"
                   xmlns:mnu="clr-namespace:Infusion.Silverlight.Controls.Menu;assembly=Infusion.Silverlight.Controls"
                   mc:Ignorable="d"
                   AllowDrop="True"
                   Drop="ViewPageBase_Drop"
                   xmlns:nav="clr-namespace:ASPItalia.ModelVirtualCasting.Silverlight.BackOffice.Navigation"
                   nav:Navigator.Source="{Binding}"
                   d:DesignHeight="386.854"
                   d:DesignWidth="621">
    <view:ViewPageBase.ViewModel>
        <viewmodel:MainPageViewModel />
    </view:ViewPageBase.ViewModel>

    <Grid x:Name="LayoutRoot"
          AllowDrop="True"
          Background="#FF666666">
        <Grid.RowDefinitions>
            <RowDefinition Height="113" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <rbn:Ribbon Tabs="{Binding MenuItems, Mode=OneWay}"
                    Style="{StaticResource RibbonStyle1}"
                    Margin="20,0,20,0"
                    Height="113">
        </rbn:Ribbon>
        <navigation:Frame x:Name="ContentFrame"
                          Margin="20,3,20,20"
                          Source="/Home"
                          Navigated="ContentFrame_Navigated"
                          NavigationFailed="ContentFrame_NavigationFailed"
                          Background="#00D92929"
                          Grid.Row="1">
            <navigation:Frame.UriMapper>
                <uriMapper:UriMapper>
                    <uriMapper:UriMapping Uri=""
                                          MappedUri="/Views/Home.xaml" />
                    <uriMapper:UriMapping Uri="/{pageName}"
                                          MappedUri="/Views/{pageName}.xaml" />
                </uriMapper:UriMapper>
            </navigation:Frame.UriMapper>
        </navigation:Frame>
        <toolkit:BusyIndicator IsBusy="{Binding Processing.Item1}"
                               BusyContent="{Binding Processing.Item2}"
                               CacheMode="BitmapCache"
                               Grid.RowSpan="2"
                               Grid.ColumnSpan="3" />
    </Grid>
</view:ViewPageBase>
